package service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import dao.ExportExlDao;
import dao.ExportExlDaoImp;
import jdbc.jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ExportExlService {



    public JSONArray ExportExlDaoOrIntList(JSONArray ids) throws SQLException {
        ExportExlDao exportExlDao=new ExportExlDaoImp();
        JSONArray jsonArray=exportExlDao.ExportExlDaoOrIntList(ids);
        return jsonArray;
    }


    public JSONArray ExportExlDaoOrNameOrBanjiOrDateTime(String name, String Banji, String startDate, String endDate,int mark) throws SQLException {
        ExportExlDao exportExlDao=new ExportExlDaoImp();
        JSONArray jsonArray=exportExlDao.ExportExlDaoOrNameOrBanjiOrDateTime( name,  Banji,  startDate,  endDate, mark);
        return jsonArray;
    }
}
